// main.ts
import { createApp } from 'vue'
import store from './store/index'
import * as Icons from '@element-plus/icons-vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import axios from './API/request'
import router from './Router/index'
const app = createApp(App)
import { AES_Encrypt, AES_Decrypt } from './crypto/index'
Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key])
  })
app.use(ElementPlus)
app.use(router)
app.mount('#app')
app.use(store)
app.config.globalProperties.$axios=axios; 
app.config.globalProperties.$AES_Encrypt = AES_Encrypt //全局加密
app.config.globalProperties.$AES_Decrypt = AES_Decrypt //全局解密
app.config.globalProperties.$router=router